import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/style/index.scss' // global css
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
Vue.config.productionTip = false

import { setMessage } from '@/utils/setMessage'
Vue.prototype.message = setMessage

import storage from '@/utils/localStorage'//storage存储
Vue.prototype.storage = storage

import { getDicts } from "@/api/dict";
Vue.prototype.getDicts = getDicts

import Head from "@/components/Head.vue";//全局头部组件
import HeadMenu from "@/components/HeadMenu.vue";
import Mallhead from "@/components/Mallhead.vue";//商城头部组件
import BreadCrumb from "@/components/BreadCrumb.vue"
import Footer from '@/components/footer.vue'
import ImageUpload from "@/components/ImageUpload.vue";//图片上传组件
Vue.component('Head', Head)
Vue.component('HeadMenu', HeadMenu)
Vue.component('Mallhead', Mallhead)
Vue.component('BreadCrumb', BreadCrumb)
Vue.component('Footer', Footer)
Vue.component('ImageUpload', ImageUpload)

new Vue({
  router,
  store,
  components: { Head},
  render: function (h) { return h(App) }
}).$mount('#app')
